package net.jiug.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;

@ConfigurationProperties(prefix = "app.secret-key")
public class ConfigSecretKey {

    private List<String> request ;
    private Set<String> requestSet ;

    public List<String> getRequest() {
        return request;
    }
    public Set<String> getRequestSet() {
        if(requestSet==null){
            this.requestSet = request.stream().collect(Collectors.toSet());
        }
        return requestSet;
    }
    public void setRequest(List<String> request) {
        this.request = request;
    }
}

